<div class="container-fluid form-horizontal">
    <div class="col-xs-12">
        <div class="form-group mt20">
            <label class="col-xs-2 control-label">选择景点/门店</label>
            <div class="col-xs-3">
                <ui-select ng-model="tickettypeobj.view_code" theme="bootstrap" ng-change="changeview()" ng-disabled="tickettypeobj.is_live == '1'">
                    <ui-select-match placeholder="请选择一个景点">{{$select.selected.name}}</ui-select-match>
                    <ui-select-choices repeat="item.code as item in page.viewlist | filter: $select.search">
                        <span ng-bind-html="item.name | highlight: $select.search"></span>
                        【
                        <span ng-bind-html="item.code | highlight: $select.search"></span> 】
                    </ui-select-choices>
                </ui-select>
            </div>
            <!-- <div class="col-xx-1"></div> -->
            <div class="col-xs-2">
                <a class="btn btn-success btn-md" ng-click="createView()" ng-if="tickettypeobj.is_live !== '1'">新增景点/门店</a>
            </div>
        </div>
        <div class="form-group mt30">
            <label class="col-sm-2 control-label">票种名称</label>
            <div class="col-sm-3">
                <input type="text" class="form-control" ng-model="tickettypeobj.name" placeholder="xxx票" />
            </div>
        <!-- </div>
        <div class="form-group"> -->
            <label class="col-sm-2 col-xs-12 control-label">有效期开始</label>
            <div class="col-sm-5 col-xs-12">
                <div class="input-group">
                    <div class="pull-left input-group">
                        <input type="text" class="form-control" datepicker-popup="yyyy-MM-dd" ng-model="periodstart.lable" is-open="periodstart.opened"
                            readonly close-text="关闭" current-text="今天" clear-text="清除" />
                        <span class="input-group-btn">
                            <button type="button" class="btn btn-default" ng-click="dateOpen($event, periodstart)">
                                <i class="glyphicon glyphicon-calendar"></i>
                            </button>
                        </span>
                    </div>
                </div>
            </div>
            <div class="col-sm-6 mt10">
                <font face="Courier" class="text-danger"></font>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 col-xs-12 control-label">是否需要预约</label>
            <div class="col-sm-3 col-xs-12">
                <select class="form-control" ng-model="tickettypeobj.appoint">
                    <option value="0">无需预约</option>
                    <option value="1">需要预约</option>
                </select>
            </div>
        <!-- </div>
        <div class="form-group"> -->
            <label class="col-sm-2 col-xs-12 control-label">有效期结束</label>
            <div class="col-sm-5 col-xs-12">
                <div class="input-group">
                    <div class="pull-left input-group">
                        <input type="text" class="form-control" datepicker-popup="yyyy-MM-dd" ng-model="periodend.lable" is-open="periodend.opened"
                            readonly close-text="关闭" current-text="今天" clear-text="清除" />
                        <span class="input-group-btn">
                            <button type="button" class="btn btn-default" ng-click="dateOpen($event, periodend)">
                                <i class="glyphicon glyphicon-calendar"></i>
                            </button>
                        </span>
                    </div>
                </div>
            </div>
            <!-- <div class="col-sm-6 mt10">
                <font face="Courier" class="text-danger"></font>
            </div> -->
        </div>
    </div>
    <div class="form-group" ng-if="util.what == 'edit'">
        <div class="col-sm-5">
        </div>
        <div class="col-sm-2 col-xs-12 text-center">
            <button type="button" class="btn btn-primary btn-lg btn-block" ng-click="save()" ng-disabled="isLoading">保存</button>
        </div>
        <div class="col-sm-5">
        </div>
    </div>
    <style type="text/css">
        .col-lg-1,
        .col-lg-10,
        .col-lg-11,
        .col-lg-12,
        .col-lg-2,
        .col-lg-3,
        .col-lg-4,
        .col-lg-5,
        .col-lg-6,
        .col-lg-7,
        .col-lg-8,
        .col-lg-9,
        .col-md-1,
        .col-md-10,
        .col-md-11,
        .col-md-12,
        .col-md-2,
        .col-md-3,
        .col-md-4,
        .col-md-5,
        .col-md-6,
        .col-md-7,
        .col-md-8,
        .col-md-9,
        .col-sm-1,
        .col-sm-10,
        .col-sm-11,
        .col-sm-12,
        .col-sm-2,
        .col-sm-3,
        .col-sm-4,
        .col-sm-5,
        .col-sm-6,
        .col-sm-7,
        .col-sm-8,
        .col-sm-9,
        .col-xs-1,
        .col-xs-10,
        .col-xs-11,
        .col-xs-12,
        .col-xs-2,
        .col-xs-3,
        .col-xs-4,
        .col-xs-5,
        .col-xs-6,
        .col-xs-7,
        .col-xs-8,
        .col-xs-9 {
            position: inherit !important;
            ;
        }
    </style>
</div>